package com.liudadan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@ResponseBody
@Controller
@RequestMapping("/path")
public class PathController {
    @GetMapping("/{type}/do/{id}")
    public String path(@PathVariable("type") String erdaye,@PathVariable(required = false) Integer id){
        System.out.println("PathController.path");
        System.out.println("erdaye = " + erdaye + ", id = " + id);
        return "erdaye = " + erdaye + ", id = " + id;

    }

}
